package com.baitiaojun.bulletscreen;

import com.baitiaojun.api.util.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableFeignClients
@EnableTransactionManagement
@EnableScheduling
@EnableDiscoveryClient
@MapperScan("com.baitiaojun.bulletscreen.mapper")
@SpringBootApplication
public class ImoocBilibiliBulletScreenApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(ImoocBilibiliBulletScreenApplication.class, args);
        SpringContextUtil.setApplicationContext(context);
    }
}
